﻿var kkk = "#fEffect/CharacterEff/1112904/0/0#";
var status = 0;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0 && status == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
        	var text="您好，在这里可以制作140、150的装备，请选择您需要制作的装备类型：\r\n";
			text+="#b#L0#" + kkk + "制作140级防具#l\r\n";
			text+="#b#L1#" + kkk + "制作140级武器#l\r\n";
			text+="#b#L2#" + kkk + "制作150级防具#l\r\n";
			text+="#b#L3#" + kkk + "制作150级武器#l\r\n\r\n";
			text+="#b#L4#" + kkk + "返回上一页#l\r\n";
			cm.sendSimple(text);
		} else if (status == 1){
			switch (selection) {
			case 0:
			cm.dispose();
			cm.openNpc(9900003, "241");
			break;
			case 1:
			cm.dispose();
			cm.openNpc(9900003,"242");	
            break;
			case 2:
			cm.dispose();
			cm.openNpc(9900003,"244");	
            break;
			case 3:
			cm.dispose();
			cm.openNpc(9900003,"243");	
            break;
			case 4:
			cm.dispose();
			cm.openNpc(9310362,"guanli");	
            break;
		}
	}
}
}
